package com.siwei.mes.mapper.order;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.order.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单(Order)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-05 09:31:32
 */
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Order> getList(Order entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    Order loadById(@Param("id") Long id);

    /**
     * 根据任务单ID判断是否存在异常工单
     *
     * @param id
     * @return
     */
    Long queryIsexcep(@Param("trwdId") Integer id);
}
